package com.feihong.txgw.inter.contract.integral;

import com.feihong.txgw.model.bean.invitefriend.InviteFriendsEntity;
import com.feihong.txgw.ui.mvp.model.IBaseModel;
import com.feihong.txgw.ui.mvp.precenter.AbBasePrecenter;
import com.feihong.txgw.ui.mvp.view.IBaseActivity;

import java.util.List;

import io.reactivex.Observable;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName IFriendContract
 * @package com.feihong.txgw.inter.contract.integral
 * @data 2018/5/3 17:57
 * @Describe
 * @Change
 */
public interface IFriendContract {

    abstract class AbFriendMainPrecenter extends AbBasePrecenter<IFriendMainModel,IFriendMainView>{

        public abstract void loadFriendsInfo(String cacheKey);

        public abstract void loadFriendsInfoFirst(String cacheKey);

    }
    interface IFriendMainView extends IBaseActivity{
        void setFriendsInfo(List<InviteFriendsEntity> info);

        void notData();

        void otherErrorMsg(String errorMsg);
    }

    interface IFriendMainModel extends IBaseModel{
        /**
         * 获取邀请的好友列表信息
         */
        Observable getFriendsInfo(String cacheKey);


    }
}
